package org.vectrics.recruiter.struts.admin;

import java.util.List;

import org.vectrics.common.pagelist.PageList;
import org.vectrics.recruiter.RecruitServiceLocator;
import org.vectrics.user.Person;

public class CandidateDocumentsPageList extends PageList {
	private Person person = null;
	
	public CandidateDocumentsPageList(Person person) {
		this.person = person;
	}

	public int getTotalElementCount() {
		return RecruitServiceLocator.getRecruitUserService().findCandidateDocumentCount(person);
	}

	public List getElements(int start, int end) {
		return RecruitServiceLocator.getRecruitUserService().findCandidateDocuments(person, start, end);
	}

}
